package com.xxx.service.impl;

import com.xxx.domain.Permission;
import com.xxx.mapper.PermissionMapper;
import com.xxx.service.IPermissionService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * <p>
 * 权限表 服务实现类
 * </p>
 *
 * @author jh
 * @since 2025-08-30
 */
@Service
public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permission> implements IPermissionService {

    @Autowired
    private PermissionMapper permissionMapper;
    /**
     * 根据登录用户id查询用户权限
     * @param id
     * @return
     */
    @Override
    public List<Permission> selectPermissionByLoginId(Long id) {
        return permissionMapper.selectPermissionByLoginId(id);
    }
}
